#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
double* convertTemperature(double celsius, int* returnSize) {
	double* arr = (double*)malloc(2 * sizeof(double));
	arr[0] = celsius + 273.15;
	arr[1] = celsius * 1.80 + 32.00;
	*returnSize = 2;
	return arr;
}
int main()
{
	double T = 0;
	int* returnSize = 2;
	scanf("%f", &T);
	double* p = convertTemperature(T, returnSize);
	for (int i = 0; i < 2; i++)
	{
		printf("%d \n", p[i]);
	}
	return 0;
}